package com.hc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hc.domain.Blog;
import com.hc.vo.BlogAddVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 博客
 *
 * @author 梁云亮
 */
@Mapper
public interface BlogMapper extends BaseMapper<Blog> {

    /**
     * 批量添加博客
     *
     * @param list
     * @return
     */
    int batchInsertBlog(@Param("list") List<BlogAddVO> list);

    /**
     * 批量更新博客
     *
     * @param blogList
     * @return
     */
    int batchUpdateBlogSelective(@Param("list") List<Blog> blogList);
}
